package com.maybach.core.dal.mapper;

import com.maybach.common.model.OrderInfoDO;
import com.maybach.common.query.OrderInfoQuery;

import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * MyBatis Mapper for OrderInfo.
 */
public interface OrderInfoMapper {
    /**
     * query count by query condition.
     */
    int countByQuery(OrderInfoQuery query);

    /**
     * delete by query condition.
     */
    int deleteByQuery(OrderInfoQuery query);

    /**
     * delete by primary key.
     */
    int deleteByPrimaryKey(OrderInfoDO record);

    /**
     * insert selective.
     */
    int insertSelective(OrderInfoDO record);

    /**
     * select by query condition.
     */
    List<OrderInfoDO> selectByQuery(OrderInfoQuery query);

    /**
     * select by primary key.
     */
    OrderInfoDO selectByPrimaryKey(Long id);

    /**
     * update by query condition selective.
     */
    int updateByQuerySelective(@Param("record") OrderInfoDO record, @Param("query") OrderInfoQuery query);

    /**
     * update by query condition.
     */
    int updateByQuery(@Param("record") OrderInfoDO record, @Param("query") OrderInfoQuery query);

    /**
     * update by primary key selective.
     */
    int updateByPrimaryKeySelective(OrderInfoDO record);
}